package com.wltt.product.ahuthr.controller;

import com.wltt.product.ahuthr.model.ResultData;
import com.wltt.product.ahuthr.service.DeptService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/dept")
public class DeptController {

    @Resource
    private DeptService deptService;

    /**
     * 分页查询
     *
     * @return
     */
    @RequestMapping(value = {"/listAllDept"}, method = RequestMethod.POST)
    public ResultData listAllDept() {
        return deptService.listAllDept();
    }
}
